func goToSwitch() {
    moveForward()
    moveForward()
    turnRight()

    for i in 1 ... 7 {
        moveForward()
    }
}

func goBack() {
    turnLeft()
    turnLeft()

    for i in 1 ... 7 {
        moveForward()
    }
    
    turnRight()
    
}

for i in 1 ... 3 {
    goToSwitch()
    toggleSwitch()
    goBack()
}
